<template>
  <el-dialog
    :title="$getTextByLangKey('警告')"
    :show-close=false
    :close-on-press-escape=false
    :close-on-click-modal=false
    :visible.sync="dialogVisible">
    <span>正常生产过程中禁止置零操作，仅用于正常生产前清除数据，置零后余量和已生产数量等会自动撤销</span>
    <span slot="footer" class="dialog-footer">
        <el-button  @click="cancelDialog">{{$getTextByLangKey('取 消')}}</el-button>
        <el-button type="danger" @click="confrimDialog" >{{$getTextByLangKey('计数器置零')}}</el-button>
      </span>
  </el-dialog>
</template>
<script>

  // import Request from '@/common/js/Request'

  export default {
    name: "search-action-componet",
    props: ['dialogVisible','formData','rowIndex'],
    data() {
      return {

//        formData: {
//          designedOutput: '',//计划产出
//          note: '',//备注
//        },
      }
    },
    created: function () {

    },
    methods: {

      creatDialog: function () {
//        this.dialogVisible = true;

      },
      cancelDialog: function () {
//        this.dialogVisible = false;
        console.log(this.formData)
        this.$emit('cancelClearDialog')
      },
      confrimDialog: function () {
//        this.dialogVisible = false;
        this.$emit('confrimClearDialog', this.formData,this.rowIndex)
      }
    }
  }

</script>

<style >

  /*.div-search-action {*/
    /*line-height: 50px;*/

  /*}*/

  /deep/ label.el-form-item__label{
    width: 100px !important;
  }

  /deep/ .el-form-item__content{
    margin-left: 100px !important;
  }

  /deep/ .first-el-select{
    padding-left: 10px;
  }
  /deep/ .el-button-delete-data{
    margin-left: 10px;
  }
  .el-dialog__body {
    padding-top: 10px;
    padding-bottom: 0px;
  }

  .el-dialog__footer {
    padding-top: 10px;
  }

  .el-form-left {
    margin-right: 10px;
  }

  .el-form-right {
    margin-left: 10px;
  }
</style>
